package com.gitee.qdbp.general.trade.api.personal.service;

import java.util.List;
import com.gitee.qdbp.able.exception.ServiceException;
import com.gitee.qdbp.base.system.model.IAccount;
import com.gitee.qdbp.general.trade.api.personal.model.PersonalAddressBase;

/**
 * 用户地址业务接口
 *
 * @author zhh
 * @version 180716
 */
public interface IPersonalAddressExecutor {

    String create(PersonalAddressBase model, String userId, boolean isDefault, IAccount me) throws ServiceException;

    void update(String id, PersonalAddressBase model, IAccount me) throws ServiceException;

    /** 设置为默认地址 **/
    void setDefault(String id, IAccount me) throws ServiceException;

    void delete(String id, IAccount me) throws ServiceException;

    void delete(List<String> ids, IAccount me) throws ServiceException;

}